<h1>Consumos List</h1>

<table>
  <thead>
    <tr>
      <th>Regla</th>
      <th>Plan</th>
      <th>Cliente</th>
      <th>Consumido</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($consumos as $consumo): ?>
    <tr>
      <td><a href="<?php echo url_for('consumo/show?regla_id='.$consumo->getReglaId().'&plan_id='.$consumo->getPlanId().'&cliente_id='.$consumo->getClienteId()) ?>"><?php echo $consumo->getReglaId() ?></a></td>
      <td><a href="<?php echo url_for('consumo/show?regla_id='.$consumo->getReglaId().'&plan_id='.$consumo->getPlanId().'&cliente_id='.$consumo->getClienteId()) ?>"><?php echo $consumo->getPlanId() ?></a></td>
      <td><a href="<?php echo url_for('consumo/show?regla_id='.$consumo->getReglaId().'&plan_id='.$consumo->getPlanId().'&cliente_id='.$consumo->getClienteId()) ?>"><?php echo $consumo->getClienteId() ?></a></td>
      <td><?php echo $consumo->getConsumido() ?></td>
      <td><?php echo $consumo->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('consumo/new') ?>">New</a>
